package com.shiminghui;

import java.util.Scanner;

public class QiuPingFangGen {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        int a =scanner.nextInt();
        int count =0;
//        while (a>1){
//            a/=2;
//            count++;
//        }
//        System.out.println(count);

        for (int i =0;i<a;i++){
            if (i*i==a){
                System.out.println(i);
                break;
            }else if(i*i>a){
                System.out.println(i-1+"是平方根的整数部分");
                break;
            }
        }
    }
}
